/**
 * api文件
 * @Author: yd_renyuanyu
 * @Date: 2021-11-12 10:48:10
 * @Version: 1.0.0
 */
import request from '@/lib/request';

/* ********** AuditLogs ********** */
/**
 * --
 * @tips AuditLogs
 * @tags [AuditLogs]
 * @param { object } aDataQuery 参数 [Api_GET_AuditLogsQO]
  */
export function api_GET_AuditLogs (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/audit-logging/audit-logs',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * --
 * @tips AuditLogs
 * @tags [AuditLogs]
 * @param {string} id
  */
export function api_GET_AuditLogsId (id) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/audit-logging/audit-logs/${id}`,
    method: 'get'
  });
}
/**
 * --
 * @tips AuditLogs
 * @tags [AuditLogs]
 * @param { object } aDataQuery 参数 [Api_GET_AuditLogsStatisticsErrorRateQO]
  */
export function api_GET_AuditLogsStatisticsErrorRate (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/audit-logging/audit-logs/statistics/error-rate',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * --
 * @tips AuditLogs
 * @tags [AuditLogs]
 * @param { object } aDataQuery 参数 [Api_GET_AuditLogsStatisticsAverageExecutionDurationPerDayQO]
  */
export function api_GET_AuditLogsStatisticsAverageExecutionDurationPerDay (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/audit-logging/audit-logs/statistics/average-execution-duration-per-day',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * --
 * @tips AuditLogs
 * @tags [AuditLogs]
 * @param { object } aDataQuery 参数 [Api_GET_AuditLogsEntityChangesQO]
  */
export function api_GET_AuditLogsEntityChanges (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/audit-logging/audit-logs/entity-changes',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * --
 * @tips AuditLogs
 * @tags [AuditLogs]
 * @param { object } aDataQuery 参数 [Api_GET_AuditLogsEntityChangesWithUsernameQO]
  */
export function api_GET_AuditLogsEntityChangesWithUsername (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/audit-logging/audit-logs/entity-changes-with-username',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * --
 * @tips AuditLogs
 * @tags [AuditLogs]
 * @param {string} entityChangeId
  */
export function api_GET_AuditLogsEntityChangeWithUsernameEntityChangeId (entityChangeId) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/audit-logging/audit-logs/entity-change-with-username/${entityChangeId}`,
    method: 'get'
  });
}
/**
 * --
 * @tips AuditLogs
 * @tags [AuditLogs]
 * @param {string} entityChangeId
  */
export function api_GET_AuditLogsEntityChangesEntityChangeId (entityChangeId) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/audit-logging/audit-logs/entity-changes/${entityChangeId}`,
    method: 'get'
  });
}
